<?php
/**
* Ezbbscnf 클래스 정의
* @package Table
* @since 2005-11-17
* @update 2008-07-07
* @version 2.1.0
* @author ezdong <ezdong@nextez.co.kr> & hamhaja <hamhaja@nextez.co.kr>
*/
if (!class_exists("Ezbbscnf"))
{
	require_once dirname(__FILE__) . '/class.Table.php';

	class Ezbbscnf extends Table
	{
		/**
		* @var array $_langs 게시판 언어목록
		*/
		var $_langs;

		/**
		* PHP 5 Constructor
		*/
		function __construct(&$Db)
		{
			parent::__construct();

			$this->_Db = &$Db;
			$this->_table = "BOD_EZBBSCNF";
			$this->_table_fields = array(
				'ebcf_id'			=> 'string',
				'ebcf_pname'		=> 'string',
				'ebcf_lang'			=> 'string',
				'ebcf_type'			=> 'string',
				'ebcf_logic1'		=> 'string',
				'ebcf_logic2'		=> 'string',
				'ebcf_skin1'		=> 'string',
				'ebcf_skin2'		=> 'string',
				'ebcf_css'			=> 'string',
				'ebcf_admgrp_list'	=> 'string',
				'ebcf_admin_list'	=> 'string',
				'ebcf_artcat_flag'	=> 'boolean',
//				'ebcf_artcat_view_flag'	=> 'boolean',
				'ebcf_notice_flag'	=> 'boolean',
				'ebcf_answer_flag'	=> 'boolean',
				'ebcf_ansdel_flag'	=> 'boolean',
				'ebcf_reply_flag'	=> 'boolean',
				'ebcf_repdel_flag'	=> 'boolean',
				'ebcf_lock_flag'	=> 'boolean',
				'ebcf_spam_flag'	=> 'boolean',
				'ebcf_admmail_flag'	=> 'boolean',
				'ebcf_usrmail_flag'	=> 'boolean',
				'ebcf_viewlist_flag'=> 'boolean',
				'ebcf_gallery_flag'	=> 'boolean',
				'ebcf_editor_flag'	=> 'boolean',
				'ebcf_admsms_flag'	=> 'boolean',
				'ebcf_usrsms_flag'	=> 'boolean',
				'ebcf_html_flag'	=> 'boolean',
				'ebcf_search_flag'	=> 'boolean',
				'ebcf_search_list'	=> 'string',
				'ebcf_order'		=> 'string',
				'ebcf_order_flag'	=> 'boolean',
				'ebcf_rss_flag'		=> 'boolean',
				'ebcf_bigsize_flag' => 'boolean',
				'ebcf_security_flag'=> 'boolean',
				'ebcf_table_width'	=> 'integer',
				'ebcf_page_num'		=> 'integer',
				'ebcf_row_num'		=> 'integer',
				'ebcf_new_hour'		=> 'integer',
				'ebcf_hot_cnt'		=> 'integer',
				'ebcf_subject_size'	=> 'integer',
				'ebcf_file_num'		=> 'integer',
				'ebcf_file_size'	=> 'integer',
				'ebcf_ext_list'		=> 'string',
				'ebcf_ext_flag'		=> 'boolean',
				'ebcf_img_width'	=> 'integer',
				'ebcf_img_height'	=> 'integer',
				'ebcf_link_num'		=> 'integer',
				'ebcf_list_list'	=> 'string',
				'ebcf_view_list'	=> 'string',
				'ebcf_input_list'	=> 'string',
				'ebcf_list_date'	=> 'string',
				'ebcf_view_date'	=> 'string',
				'ebcf_tag_flag'		=> 'boolean',
				'ebcf_tag_list'		=> 'string',
				'ebcf_list_level'	=> 'integer',
				'ebcf_view_level'	=> 'integer',
				'ebcf_insert_level'	=> 'integer',
				'ebcf_update_level'	=> 'integer',
				'ebcf_delete_level'	=> 'integer',
				'ebcf_answer_level'	=> 'integer',
				'ebcf_reply_level'	=> 'integer',
				'ebcf_header'		=> 'string',
				'ebcf_footer'		=> 'string',
				'ebcf_use_flag'		=> 'boolean',
				'ebcf_file_dir'		=> 'string',
				'ebcf_file_url'		=> 'string',
				'ebcf_cid'			=> 'mid',
				'ebcf_uid'			=> 'mid',
				'ebcf_ctime'		=> 'timestamp',
				'ebcf_utime'		=> 'timestamp',
			);
			$this->_primary_keys = array('ebcf_id');
			$this->_check_fields();

			//$this->_langs = array('kor' => '한국어', 'eng' => '영어', 'chi' => '중국간체', 'chb' => '중국번체');
			$this->_langs = array('kor' => '한국어');
		}

		/**
		* Constructor
		*/
		function Ezbbscnf(&$Db)
		{
			$this->__construct($Db);
		}

		/**
		* 게시판 로직 목록을 반환한다.
		* @return array 로직목록
		* @version 2.1.0
		*/
		function logic_list()
		{
			global $App;
			$App->class_require('File');
			$File = new File();

			$list = array();
			$files = $File->get_dirs($App->_dir_board . "/logic/");
			foreach ($files as $v) $list[] = $v;

			sort($list);

			return $list;
		}

		/**
		* 게시판스킨 목록을 반환한다.
		* @return array 스킨목록
		* @version 2.1.0
		*/
		function skin_list()
		{
			global $App;
			$App->class_require('File');
			$File = new File();

			$list = array();
			$files = $File->get_dirs($App->_dir_board . "/skin/");
			foreach ($files as $v) $list[] = $v;

			sort($list);

			return $list;
		}

		/**
		* 게시판css 목록을 반환한다.
		* @return array 스킨목록
		* @version 2.1.0
		*/
		function css_list()
		{
			global $App;
			$App->class_require('File');
			$File = new File();

			$list = array();
			$files = $File->get_files($App->_dir_board . "/css/");
			foreach ($files as $v) $list[] = $v;

			sort($list);

			return $list;
		}
	}
}
?>